<?php
/**
 * Created by PhpStorm.
 * User: 共赢岛
 * Date: 2024/1/12
 * Time: 13:50
 */

namespace App\Http\Controllers\API\LifeCycle\Package;

use App\Http\Controllers\Controller;
use App\Services\LifeCycle\DepartmentService;
use App\Services\LifeCycle\StoreService;
use Illuminate\Http\Request;

class DepartmentController extends Controller
{
    public function storeAll()
    {
        return $this->success(DepartmentService::storeSelect());
    }

    public function save(Request $request)
    {
        DepartmentService::save($request->all());

        return $this->success();
    }
}